<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
           "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>{$title|default:$smarty.const.LANG_UNTITLED}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="{$css}" />
    <link rel="stylesheet" type="text/css" media="print" href="{$print_css}" />
	
{if  $action == 'add' || $action == 'edit' || $action == 'change_type' || $load_editor}
	<script language="javascript" type="text/javascript" src="./js/tiny_mce/tiny_mce_gzip.php"></script>
	<script language="javascript" type="text/javascript" src="./js/tiny_mce/editor.js.php"></script>
{/if}
</head>

<body dir="{$smarty.const.LANG_DIR}">
<table class="sub" align="center" cellpadding="0" cellspacing="0">
<tr><td>
	{include file='header.tpl'}
</td></tr>
{if $message[0]}
	<tr><td>
	<center>
		<div class="lb_message" style="text-align:{$smarty.const.LANG_ALIGN}">
			{foreach item=item from=$message}
			<li>&nbsp;{$item}</li>
			{/foreach}
		</div>
	<center>
	</td></tr>
{/if}
<tr><td>
	<table class="lb_main" align="center" cellpadding="0" cellspacing="0">
	    <tr>
	        <td class="lb_menu" valign="top">
	        	{include file='menu.tpl'}
	        	<table class="lb_block" cellpadding="2" cellspacing="1">
	        	{foreach from=$left item=plugin}
				<tr>
					<td class="lb_block_title">{$plugin.title}</td>
				</tr>
				<tr>
					<td class="lb_block_body" align="center">
						{assign var="plugin_name" value=$plugin.name}
						{include file="$dir/plugin/$plugin_name/templates/content.tpl"}	
					</td>
				</tr>
	        	{/foreach}
	        	</table>
	        </td>
			<td class="lb_main_sep">&nbsp;</td>
			{if $do}
				<td class="lb_content" align="center">
					{include file="$do.tpl"}
				</td>
			{elseif $task}
			   	<td class="lb_content" align="center">
					{include file="$task.tpl"}
				</td>
			{else}
				<td class="lb_content" align="center">
					{include file="$action.tpl"}
				</td>
			{/if}
	    </tr>
	</table>
</td></tr>
<tr><td>
	{include file='footer.tpl'}
</td></tr>
</table>
</body>
</html>
